<?php 

function animal_species() {
	global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		echo $species_details['species'];	
	}
}

function animal_breed(){
		global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		echo $species_details['breed'];	
	}
}

function animal_gender(){
		global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		echo $species_details['gender'];	
	}
}

function animal_size(){
		global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		echo $species_details['size'];	
	}
}

function animal_age(){
		global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		echo $species_details['age'];	
	}
}
	
function animal_fixed(){
		global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		echo $species_details['spay_neut'];	
	}
}


function animal_blog(){
		global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		echo $species_details['blog'];
	}
}

function animal_foster_home(){
		global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		echo $species_details['foster_location'];	
	}
}

function is_animal_adopted(){
		global $post;
	
	$species_details = get_post_meta( $post->ID, 'species_meta', true );
		
	if( $species_details == false) {
		return;
	} else {
		if  ($species_details['adopted']){
		return true;
	}else{
		return false;
			}
	 
	
		
	}
}


?>